package com.rbac.service.test;

import com.common.Result;
import com.domain.dto.test.EmployeeRoleDto;
import com.rbac.pojo.Employee;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface EmployeeService {

    Result getList(Integer pageNum, Integer pageSize);

    Result delete(Integer id);

    Result save(Employee employee);

    Result update(Employee employee);

    Employee getEmployeeById(Integer id);

    List<Employee> getEmployeeAllById();

    List<Employee> listLike(String name);

    Result updateState(Integer id, Boolean admin);

    //更新的v2版本
    Result updateEmployeeRole(EmployeeRoleDto employeeRoleDto);
}
